﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace POI.eTransmittal.WebApp
{
    public partial class DocumentTypeForm : BasePage 
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Page_Init(object sender, EventArgs e)
        {
            RegisterXpodatasource(xpodsDoctype);
        }
        protected void gridDocType_RowDeleted(object sender, DevExpress.Web.Data.ASPxDataDeletedEventArgs e)
        {
            CurrentUnitOfWork.CommitChanges();
        }

     

        protected void gridDocType_RowInserted(object sender, DevExpress.Web.Data.ASPxDataInsertedEventArgs e)
        {
            CurrentUnitOfWork.CommitChanges();
        }

        protected void gridDocType_RowUpdated(object sender, DevExpress.Web.Data.ASPxDataUpdatedEventArgs e)
        {
            CurrentUnitOfWork.CommitChanges();
        }

        protected void gridDocType_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
        {
            e.NewValues["Formula"] = "PO/[code]/[yymm]/[sequence]";
        }
    }
}